package com.gxy.learn.design.model.behaviour.iterator;

/**
 * @description: 抽象聚合
 * @author: gaoxueyong
 * @Date: 2022/11/8 21:43
 */
public interface StudentAggregate {
    /**
     * 添加对象
     * @Author gaoxueyong
     * @Date 9:45 下午 2022/11/8
     * @Param [student]
     * @return void
     **/
    void addStudent(Student student);
    /**
     * 修改对象
     * @Author gaoxueyong
     * @Date 9:45 下午 2022/11/8
     * @Param [student]
     * @return void
     **/
    void removefStudent(Student student);
    /**
     * 获取对象迭代器
     * @Author gaoxueyong
     * @Date 9:45 下午 2022/11/8
     * @Param []
     * @return com.gxy.learn.design.model.behaviour.iterator.StudentIterator
     **/
    StudentIterator getStudentIterator();
}
